package com.pyl.admin.system.validator;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * @author 灵魂贰婶
 * @date 2018/8/14
 */
@Data
public class MenuForm implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotBlank(message = "标题不能为空")
	private String title;

	@NotNull(message = "父级菜单不能为空")
	private Long pid;

	@NotBlank(message = "url地址不能为空")
	private String url;

	@NotNull(message = "菜单类型不能为空")
	private Byte type;

	private Long id;

	@NotNull(message = "排序不能为空")
	private Integer sort;

	private String icon;

	private String pids;

	private String remark;

}
